package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Manchoice;
import tech.aistar.mapper.ManChoiceMapper;
import tech.aistar.service.IManchoiceService;

import java.util.List;
@Service
public class ManchoiceServiceImpl implements IManchoiceService {

    @Autowired
    private ManChoiceMapper manChoiceMapper;

    @Override
    public List<Manchoice> findAll() {
        return manChoiceMapper.findAll();
    }

    @Override
    public Manchoice findById(Long id) {
        return manChoiceMapper.findById(id);
    }

    @Override
    public List<Manchoice> findByPaperId(Long paperId) {
        return manChoiceMapper.findByPaperId(paperId);
    }

    @Override
    public String findAnswerByid(Long id) {
        return manChoiceMapper.findAnswerByid(id);
    }
}
